﻿using ComicQ.Domain.Table;
using FluentNHibernate.Mapping;

namespace ComicQ.Domain.Mapping
{
    sealed class OrderStatusMap : ClassMap<OrderStatus>
    {
        public OrderStatusMap()
        {
            Id(x => x.Id);
            Map(x => x.Status);
            HasMany(x => x.Orders).Cascade.All().Inverse();
        }
    }
}
